//
//  SCViewController.m
//  SCKitLib
//
//  Created by snow982942570 on 12/27/2021.
//  Copyright (c) 2021 snow982942570. All rights reserved.
//

#import "SCViewController.h"
#import "SCKitLib.h"
#import "SCAudioMediaPlayerView.h"

@interface SCViewController ()

@end

@implementation SCViewController

- (void)viewDidLoad
{
    //
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
	// Do any additional setup after loading the view, typically from a nib.
    SCPhotoManager *manager = [[SCPhotoManager alloc] init];
    manager.imgNetworkingList = @[].mutableCopy;
    manager.editEnble = YES;
    SCPhotoView *photoView = [[SCPhotoView alloc] initWithManager:manager];
    [self.view addSubview:photoView];
    [photoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@80);
        make.left.right.equalTo(@0);
    }];
    
    SCAudioMediaPlayerView *playView = [[SCAudioMediaPlayerView alloc] initWithControlType:1 QuesAudio:@"" QuesTitle:@"" AddAudioInitNotification:^(id  _Nonnull obj) {
        
    }];
    
    [self.view addSubview:playView];
    [playView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@20);
        make.right.equalTo(@-20);
        make.top.equalTo(photoView.mas_bottom).offset(40);
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
